
/**
 * First we will load all of this project's JavaScript dependencies which
 * includes Vue and other libraries. It is a great starting point when
 * building robust, powerful web applications using Vue and Laravel.
 */

require('./bootstrap');
// require('./flexible');
window.Vue = require('vue');
import VueRouter from 'vue-router'
window.VueRouter = VueRouter
Vue.use(VueRouter)

// import MintUI from 'mint-ui';
// import FastClick from 'fastclick'
import { request } from 'http';
/**
 * Next, we will create a fresh Vue application instance and attach it to
 * the page. Then, you may begin adding components to this application
 * or customize the JavaScript scaffolding to fit your unique needs.
 */
// Vue.use(MintUI);
// FastClick.attach(document.body);

// 商品
Vue.component('view-product', require('./components/product/index.vue'));

// 个人中心
Vue.component('view-member-order', require('./components/member/order.vue'));

// 订单
Vue.component('view-order-show', require('./components/order/show.vue'));

// 卖出的
Vue.component('view-sold-list', require('./components/member/sold-list.vue'));

Vue.component('view-sold-show', require('./components/order/sold-show.vue'));

// 手机验证
Vue.component('view-phone-verification', require('./components/public/phone-verification.vue'));

// 银行卡
Vue.component('view-bank-card', require('./components/member/bank-card.vue'));

// 个人认证
Vue.component('view-enterprise-cert', require('./components/member/enterprise-cert.vue'));

// 企业认证
Vue.component('view-personal-cert', require('./components/member/personal-cert.vue'))

// 已发布货品
Vue.component('view-mstore-product', require('./components/member/mstore-product.vue'))

// 添加新货品
Vue.component('view-product-create', require('./components/member/product-create.vue'))

// 预览货品
Vue.component('view-product-preview', require('./components/member/product-preview.vue'))

// const routes = [
//   { path: '/orderCreate/:pid', name: 'orderCreate', component: require('./components/order/create.vue') },
//   { path: '/address/:select?', name: 'address', component: require('./components/member/address.vue') },
//   { path: '/addressCreate/:select?', component: require('./components/member/address-create.vue') },
//   { path: '/addressEdit/:id/:select?', component: require('./components/member/address-create.vue') },
//   { path: '/:id/addressEdit/:select?', name: 'addressEdit', component: require('./components/member/address-create.vue') }
// ]

window.routesAddress = [
  { path: '/addressCreate', component: require('./components/member/address-create.vue') },
]

// const router = new VueRouter({
//   routes
// })

// const app = new Vue({
//     el: '#app',
//     router
// });
